package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 生产订单表 orders_product
 *
 * @author ruoyi
 */
@Data
@Entity
@Table(name = "orders_product")
@EqualsAndHashCode(callSuper = true)
@TableName(value = "orders_product")
@ApiModel(description = "生产订单表")
public class OrdersProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    @Excel(name = "生产订单序号")
    private String sortid;

    /** 下载时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "下载时间")
    @Excel(name = "下载时间")
    private Date downDatetime;

    /** 记号 */
    @ApiModelProperty(value = "记号")
    @Excel(name = "记号")
    private String markid;

    /** 车型编码 */
    @ApiModelProperty(value = "车型编码")
    @Excel(name = "车型编码")
    private String modelCode;

    /** 车型说明 */
    @ApiModelProperty(value = "车型说明")
    @Excel(name = "车型说明")
    private String modelDes;

    /** 颜色编码 */
    @ApiModelProperty(value = "颜色编码")
    @Excel(name = "颜色编码")
    private String colorCode;

    /** 车型 */
    @ApiModelProperty(value = "车型")
    @Excel(name = "车型")
    private String model;

    /** 身份识别码 */
    @ApiModelProperty(value = "身份识别码")
    @Excel(name = "身份识别码")
    private String idDes;

    /** 数据类型 */
    @ApiModelProperty(value = "数据类型")
    @Excel(name = "数据类型")
    private String sourceType;

    /** 批次号 */
    @ApiModelProperty(value = "批次号")
    @Excel(name = "批次号")
    private String batchNumber;

    /** 完成签名 */
    @ApiModelProperty(value = "完成签名")
    @Excel(name = "完成签名")
    private String completeSign;

    /** 订单类型 */
    @ApiModelProperty(value = "订单类型")
    @Excel(name = "订单类型")
    private Integer ordersType;

    /** 物料签名 */
    @ApiModelProperty(value = "物料签名")
    @Excel(name = "物料签名")
    private Boolean materialSign;

    /** 物料新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "物料新增时间")
    @Excel(name = "物料新增时间")
    private Date materialCreatTime;

    /** 物料完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "物料完成时间")
    @Excel(name = "物料完成时间")
    private Date materialCompleteTime;

    /** 物料编码 */
    @ApiModelProperty(value = "物料编码")
    @Excel(name = "物料编码")
    private String materialCode;

    /** 生产订单状态（0正常 1关闭） */
    @ApiModelProperty(value = "生产订单状态")
    private String status;

}
